package main

import "fmt"

func goChannel() {

	makeChan()
}

func makeChan() {
	ch := make(chan int, 10)
	ch <- 1
	ch <- 2
	fmt.Println(len(ch))
	fmt.Println(cap(ch))

	for e := range ch {
		fmt.Printf("element:%d\n", e)
	}
	// i := <-ch
	// fmt.Println(i)
}
